#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@IDE     ：PyCharm 
@Author  ：kiway
@Date    ：2024/9/22 10:29 
"""

if __name__ == '__main__':

    import platform

    sys_ = platform.system()
    import sys

    if sys_ == "Linux":
        # print("OS is Linux!!!")
        sys.path.append('/home/kiway/real_platform/cmrp_V2')

    from cmrp import get_future_symbol_ls, get_spot_symbol_ls

    # a = get_spot_symbol_ls()
    # b = get_future_symbol_ls()

    from cmrp import MainLoopEngine
    from Z_Strategy.strategyTest1 import MyStrategy

    configs = [{
         'symbols': ["BTC/USDT:USDT", "ETH/USDT:USDT"],
         # 'symbols': b,
         'options': {'defaultType': 'future'},
         },
        {'symbols': ["BTC/USDT", "ETH/USDT"],
         # 'symbols': a,
         'options': {'defaultType': 'spot'},
         }
    ]

    app = MainLoopEngine()
    app.add_strategy(strategy=MyStrategy, configs=configs)
    app.start()
